package game.jabberclient;

import java.io.Serializable;
/**
 * Different types of messages for communications between server and client.
 *
 */
public class Message implements Serializable {

	private static final long serialVersionUID = 1L;
	public static final int NEWPL = 0;
	public static final int MESSAGE = 1;
	public static final int LOGOUT = 2;
	public static final int ID = 3;
	public static final int DICE = 4;
	public static final int MOVE = 5;
	public static final int IN = 6;
	public static final int START = 7;
	public static final int NEXT = 8;
	public static final int TURN = 9;
	public static final int VICTORY = 10;
	

	private int type;
	private String message = null;

	public Message(int type, String message) {
		this.type = type;
		this.message = message.trim();
	}

	public String getMessage() {
		return message;
	}

	public int getType() {
		return type;
	}

}
